Introduction
The Short URL feature allows users to convert long, complex URLs into concise, easy-to-share links.
This feature provides a secure, authenticated interface for users to generate short links and a public redirection endpoint that resolves the short code back to the original URL.
The main components of this feature include:
- Short URL Generation: Authenticated users can submit a valid original URL and receive a shortened version with a unique short code.
- Redirection: Any user can access the short URL, which redirects them to the original, full-length URL.
- Persistent Storage: Each original URL and its corresponding short code are stored in the database with a timestamp of creation.
- Metrics: Prometheus metrics are collected for both the creation and redirection endpoints to aid in usage monitoring and performance analysis.